deploy: Suppress unused variable warning for fscreatecon cleanup
authorColin Walters <walters@verbum.org>
Thu, 27 Oct 2016 17:43:39 +0000 (13:43 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 27 Oct 2016 17:50:56 +0000 (17:50 +0000)
Fixes the clang build.

Closes: #551
Approved by: jlebon

src/libostree/ostree-sysroot-deploy.c

index 41a9a8dff58a255cebda519d2950b6e0c4f8c498..427e188bb0daab06dd96256f7661d9c705ae9bda 100644 (file)
@@ -2146,7 +2146,10 @@ ostree_sysroot_deploy_tree (OstreeSysroot     *self,
         goto out;
     }
 
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wunused-variable"
   { ostree_cleanup_sepolicy_fscreatecon gpointer dummy = NULL;
+#pragma GCC diagnostic pop
 
     /* Explicitly override the label for the origin file to ensure
      * it's system_conf_t.